package com.cj.ai.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * 发送给ai的请求
 * @author cc
 * @date 2024-08-21 21:57
 **/

@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class AiRequestBody {


    private List<AiChatMessage> messages;

    private Boolean stream;

    private Float temperature;

    private Float top_p;

    private Float penalty_score;
    private String system;
    private List<String> stop;

    private Integer min_output_tokens;
    private Integer max_output_tokens;
    private Float frequency_penalty;
    private Float presence_penalty;
    /**
     * 用openid 作为user_id
     */
    private String user_id;
}
